package org.jeecg.trace.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 包装状态表
 * @Author: LiCY
 * @Date:   2023-07-03
 * @Version: V1.0
 */
@Data
@TableName("mes_lot_status")
@ApiModel(value="包装对象", description="包装对象")
public class MesLotStatus implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
    @Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    private String recId;
	/**产线/产线组*/
    @Excel(name = "产线/产线组", width = 15)
    @ApiModelProperty(value = "产线/产线组")
    private String line;
	/**产品/产品组*/
    @Excel(name = "产品/产品组", width = 15)
    @ApiModelProperty(value = "产品/产品组")
    private String partno;
	/**工单ID*/
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;
    /**批次号*/
    @Excel(name = "父批次号", width = 15)
    @ApiModelProperty(value = "父批次号")
    private String packId;
	/**批次号*/
    @Excel(name = "批次号", width = 15)
    @ApiModelProperty(value = "批次号")
    private String lotno;
	/**单位*/
    @Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    @Dict(dicCode = "unit")
    private String unit;
	/**批次数量*/
    @Excel(name = "批次数量", width = 15)
    @ApiModelProperty(value = "批次数量")
    private java.math.BigDecimal qty;
	/**批次当前数量*/
    @Excel(name = "批次当前数量", width = 15)
    @ApiModelProperty(value = "批次当前数量")
    private java.math.BigDecimal qtyCur;
	/**状态*/
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "lot_status")
    private String status;
	/**班次日期*/
    @Excel(name = "班次日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "班次日期")
    private Date shiftDate;
	/**班次*/
    @Excel(name = "班次", width = 15)
    @ApiModelProperty(value = "班次")
    private String shift;
	/**操作工*/
    @Excel(name = "操作工", width = 15)
    @ApiModelProperty(value = "操作工")
    private String operator;
	/**批次标签模板文件路径*/
    @Excel(name = "批次标签模板文件路径", width = 15)
    @ApiModelProperty(value = "批次标签模板文件路径")
    private String labelPath;
	/**更新时间*/
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
